<div class="onecolumn" >
                        <div class="header"> <span ><span class="ico gray home"></span><?php echo Yii::app()->name;?> - Admin Dashboard</span> </div>
                        <div class="clear"></div>
<div class="content" >
                           <div class="column_left">

						<div class="onecolumn">
                            <div class="header"><span><span class="ico gray notepad"></span> Contacts</span></div>
                            <br class="clear"/>
                            <div class="content tableName">
                                <table class="display" >
                                <?php if(!empty($contacts)){ ?>
                                    <thead>
                                        <tr>
                                            <th width="224" ><div style="text-align:left; margin-left:10px" >Subject </div></th>
                                            <th width="195" ><div style="text-align:right; " >Date </div></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <?php 
                                    foreach($contacts as $key => $value) {
                                    ?>
                                        <tr>
                                            <td ><div class="msg">
                                                    <div class="msg_icon new"></div>
                                                    <div class="msg_topic"><strong><?php echo $value->name?></strong> <br/><span><?php echo $value->email;?></span></div>
                                                </div></td>
                                            <td ><div class="msg_date" ><span><?php echo date('Y/m/d', strtotime($value->created));?></span></div></td>
                                        </tr>
                                     <?php 
                                      }
                                     ?>
                                   </tbody>
                                   <?php } ?>
                                </table>
                                <?php if(!empty($contacts)){ ?>
                                	<span class="tip"><a href="<?php echo Yii::app()->getBaseUrl()?>/admin/contact" title="View All" style="float:right;">View All</a></span>
                                <?php } else {?>
                                <span>No contacts made by anyone till yet !</span>
                                <?php } ?>
							</div>
                        </div>

						</div>
<!-- Website settings manager -->
						 <div  class="grid2">
						 <div class="boxtitle min">website settings</div>
                                <div class="inner" style="padding-top:5px;">
                                
                                <?php 
									$form=$this->beginWidget('CActiveForm', array(
										'id'=>'validation',
										'htmlOptions'=> array('name'=>'settings'),
										'action'=>'#',
										'enableAjaxValidation'=>false,
									)); 
								 ?>
                                   <div class="section ">
         							<label>
         							<?php echo $form->labelEx($settings,'name'); ?><small>used in emails to be sent to users.</small>
         							</label>
                                    <div>
	<?php echo $form->textField($settings,'name', array('class'=>'validate[required,minSize[3],maxSize[30]] large','id'=>'name', 'value'=>$data->name)); ?>
                                    </div>
                                    </div>
                                  
                                   <div class="section ">
         							<label>
         							<?php echo $form->labelEx($settings,'email'); ?><small>used in emails to be sent to users.</small>
         							</label>
                                    <div>
	<?php echo $form->textField($settings,'email', array('class'=>'validate[required,custom[email]] large','id'=>'email', 'value'=>$data->email)); ?>
                                    </div>
                                   </div>
                                   
                                   <div class="section ">
         							<label>
         							<?php echo $form->labelEx($settings,'status'); ?><small>Website Status</small>
         							</label>
                                    <div>
									<?php echo $form->checkbox($settings,'status', array('class'=>'online_status', 'id'=>'online')); ?>
                                    </div>
                                   </div>
                                        <div class="section last ">
                                       	<div> 
                                       	<a class="uibutton loading" id="setting_save"  title="Updating"  rel="1" > Update</a></div>
                                        </div>
                                    <?php $this->endwidget();?>
                                </div>
                            </div>						